package com.itheima.user.feign;

import com.itheima.common.pojo.Result;
import com.itheima.core.feign.CoreFeign;
import com.itheima.user.pojo.ApUserFollow;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author：shenkunlin
 * @date： 2021/8/30 15:50
 * @Description：
 ***/
@FeignClient(value = "leadnews-user",path = "/apUserFollow")
public interface ApUserFollowFeign extends CoreFeign<ApUserFollow> {

    /**
     * 查询用户关注的集合中是否包含某个作者
     */
    @GetMapping(value = "/author/{authorId}") //作者的ID
    Result<ApUserFollow> getByAuthorId(@PathVariable(value = "authorId")Integer authorId);
}
